package com.kerwin.permmgt;

import com.baomidou.mybatisplus.extension.service.IService;
import com.kerwin.permmgt.entity.AddPerm;
import com.kerwin.permmgt.entity.Permissions;
import com.kerwin.permmgt.entity.TreePermDetail;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public interface PermService extends IService<Permissions> {


    public Map<String, List<String>> getPermDetails();

    /*查询所有的权限名称*/
    public HashMap<String, List<String>> getAllPermName();

    /*添加权限*/
    public void addPerm(AddPerm addPerm);


    public List<Permissions> queryPermDetail();

    public ArrayList<TreePermDetail> treePerm();

    /*只是简单的获取权限的名字，用于角色的添加菜单*/
    public List<Permissions> getPermName();
}
